const mongoose = require('mongoose')

const Image = mongoose.model('Image')
const Comment = mongoose.model('Comment')

module.exports = () =>
  Comment.find().sort({timestamp: -1}).limit(5).populate('image_id')
